import Home from './components/Home';//引入需要分配地址的组件
import User from './components/User';
import Cate from './components/Cate';
import Product from './components/Product';
import News from './components/News'; 
import Album from './components/Album';
import Comments from './components/Comm';

export const routes = [//这里定义路由数组，然后给各个组件分配地址
    {path: '/', component:Home },
    {path: '/User', component:User },
    {path: '/News', component:News },
    {path: '/Cate', component:Cate },
    {path: '/Product', component:Product },
    {path: '/Album', component:Album },
    {path: '/Comments/:newsId', component:Comments,name:"commroutes"},
];